Skip to content

Add 'wait' option to bindCollection #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Add 'wait' option to bindCollection #336

wants to merge 2 commits into from

Conversation

scottdotau
Copy link

This commit addresses some issues mentioned in topic #83.

This is by no means tried and tested, but thought I'd give it a start... will create a local array rather than a reference to the reactive prop, and only use .set() when populated.

@codecov-io
Copy link

codecov-io commented Aug 15, 2019

Codecov Report

Merging #336 into master will decrease coverage by 1.78%.
The diff coverage is 82.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #336      +/-   ##
==========================================
- Coverage   99.73%   97.94%   -1.79%     
==========================================
  Files          14       14              
  Lines         371      390      +19     
  Branches       64       77      +13     
==========================================
+ Hits          370      382      +12     
- Misses          1        8       +7
Impacted Files Coverage Δ
packages/vuexfire/src/firestore.ts 94.28% <66.66%> (-5.72%) ⬇️
packages/vuexfire/src/rtdb.ts 94.28% <66.66%> (-5.72%) ⬇️
...ackages/@posva/vuefire-core/src/firestore/index.ts 98.11% <86.66%> (-1.89%) ⬇️
packages/@posva/vuefire-core/src/rtdb/index.ts 97.72% <92.3%> (-2.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 63eee1c...fabfb81. Read the comment docs.

@pschaub
Copy link

pschaub commented Aug 17, 2019

@scottgearyau could you fix the codecov/tests?

@posva
Copy link
Member

posva commented Aug 29, 2019

Thanks for the initiative and the work @scottgearyau ! Unfortunately, I had quite some things going on on the branch that I needed to refactor and it involved quite some extra work so I created #361 instead so the documentation is visible and I should publish a release under a different tag for people interested in the feature to test it. If you are up to testing it, that would be really helpful! You can also review the PR

@posva posva closed this Aug 29, 2019
add: (target, newIndex, data) =>
commit(VUEXFIRE_ARRAY_ADD, { target, newIndex, data }, commitOptions),
add: (target, newIndex, data) => {
if ('__ob__' in target) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what was the reason behind this? Not using commit would prevent devtools to see it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants